package com.ckf.serene.config;

/**
 * 微信参数类
 *
 * @author serence
 * @date 2021/11/6 23:34
 */
public class WeChatConfig {

    /**
     * 应用id
     */
    public static String APP_ID = "wxxxxxxxxxxxxxxxxx";

    /**
     * 服务商应用ID
     */
    public static String SP_APP_ID = "wxxxxxxxxxxxxxxxxx";

    /**
     * 标识秘钥
     */
    public static String SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 商户id  直连商户
     */
    public static String MCH_ID = "xxxxxxxxxx";

    /**
     * 服务商户号
     */
    public static String SP_MCH_ID = "xxxxxxxxxx";

    /**
     * 子商户号
     */
    public static String SUB_MCH_ID = "xxxxxxxxxx";

    /**
     * api秘钥(商户秘钥)
     */
    public static String API_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * apiV3秘钥
     */
    public static String API_V3_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * pkcs#8公钥
     */
    public static final String RSA_PKCS8 = "/cert/public.pem";

    /**
     * 填充算法
     */
    public static final String FILLING_ALGORITHM = "RSA/ECB/OAEPWITHSHA-1ANDMGF1PADDING";

    /**
     * PKCS#8公钥
     */
    public static final String PUB_KEY = "MIIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 微信支付回调地址
     */
    public static final String Payment_Callback = "/xxx/xxx/xxx/xxx";

    /**
     * 微信退款回调地址
     */
    public static final String Refund_Callback = "/xxx/xxx/xxx/xxx";

    /**
     * 微信退款请求地址
     */
    public static final String REFUND = "https://api.mch.weixin.qq.com/secapi/pay/refund";

    /**
     * 证书地址: resource下
     */
    public static final String CERT_PATH_P12 = "classpath:cert/apiclient_cert.p12";

    /**
     * 类路径资源证书
     */
    public static final String CERT_PATH_12 = "/cert/apiclient_cert.p12";

    /**
     * 客户端秘钥 这里需要用绝对路径
     */
    public static final String keyPath = "classpath:cert/apiclient_key.pem";

    /**
     * 客户端证书 格式.pem 这里需要用绝对路径
     */
    public static final String certPath = "classpath:cert/apiclient_cert.pem";

    /**
     * 平台证书 格式.pem 这里需要用绝对路径
     */
    public static final String platformCertPath = "classpath:cert/platformCert.pem";


    //-----------------------------------服务器地址-----------------------------------//
    /**
     * 证书地址
     */
    public static final String SERVER_CERT_PATH = "/xxx/xxx/xxx/apiclient_cert.p12";

}
